package com.wei.web.demo.user.filters;

import com.wei.web.demo.user.utils.DemoUtil;
import com.wei.web.middleware.httpfilter.filter.factory.IFilterFactory;
import jakarta.servlet.Filter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component()
public class CustomFilterBFactory implements IFilterFactory {
    @Autowired
    private DemoUtil demoUtil;
    @Override
    public Filter getFilter() {
        CustomFilterB customFilterB = new CustomFilterB();
        customFilterB.setDemoUtil(demoUtil);
        return customFilterB;
    }
}
